/**
 * SelectionDetailsVo.as
 * @version     1.0
 * @date		02/15/2011
 * @author      Mohammed H Al-Darwish
 * @see            
 */
package com.aramco.fion.vo.selection
{
	import com.aramco.fion.vo.selection.*;
	
	import mx.collections.ArrayCollection;

	public class SelectionDetailsVo
	{
		//Range Selection
		public var rangeVo: RangeSelectionVo;
		
		//Single/Multiple Selection
		//[ArrayElementType("com.aramco.fion.vo.SingleMultipleSelectionVo")]
		public var singleMultipleSelection : ArrayCollection = new ArrayCollection();
		
		//Option Selection
		//[ArrayElementType("com.aramco.fion.vo.SingleMultipleSelectionVo")]
		public var optionSelection : ArrayCollection = new ArrayCollection();
		
		public function SelectionDetailsVo()
		{
		}
		
		public function toString():String
		{
			var SelectionDetailsVoString:String = "";
			
			for each( var SMS:SingleMultipleSelectionVo in  singleMultipleSelection)
			{
				SelectionDetailsVoString += SMS.toString() + ", ";
			}
			
			if(SelectionDetailsVoString.length != 0)
				SelectionDetailsVoString += ", ";
			
			if(rangeVo != null)
				SelectionDetailsVoString += rangeVo.toString();
			
			return SelectionDetailsVoString;
		}
	}
}